/* Do not change, this code is generated from Golang structs */

export {};

export class Endpoint {
    ID: number;
    Name: string;
    Type: number;
    URL: string;
    PublicURL: string;
    TLS: boolean;
    TLSCACert: string;
    TLSCert: string;
    TLSKey: string;

    static createFrom(source: any = {}) {
        return new Endpoint(source);
    }

    constructor(source: any = {}) {
        if ('string' === typeof source) source = JSON.parse(source);
        this.ID = source["ID"];
        this.Name = source["Name"];
        this.Type = source["Type"];
        this.URL = source["URL"];
        this.PublicURL = source["PublicURL"];
        this.TLS = source["TLS"];
        this.TLSCACert = source["TLSCACert"];
        this.TLSCert = source["TLSCert"];
        this.TLSKey = source["TLSKey"];
    }
}
export class ImageSummary {
    Containers: number;
    Created: number;
    Id: string;
    Labels: {[key: string]: string};
    ParentId: string;
    RepoDigests: string[];
    RepoTags: string[];
    SharedSize: number;
    Size: number;
    VirtualSize: number;

    static createFrom(source: any = {}) {
        return new ImageSummary(source);
    }

    constructor(source: any = {}) {
        if ('string' === typeof source) source = JSON.parse(source);
        this.Containers = source["Containers"];
        this.Created = source["Created"];
        this.Id = source["Id"];
        this.Labels = source["Labels"];
        this.ParentId = source["ParentId"];
        this.RepoDigests = source["RepoDigests"];
        this.RepoTags = source["RepoTags"];
        this.SharedSize = source["SharedSize"];
        this.Size = source["Size"];
        this.VirtualSize = source["VirtualSize"];
    }
}
export class Client {


    static createFrom(source: any = {}) {
        return new Client(source);
    }

    constructor(source: any = {}) {
        if ('string' === typeof source) source = JSON.parse(source);

    }
}